package io.renren.modules.mvs.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
public class ViolationDto implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 违章表id
     */
    private Long id;
    /**
     * 用户id
     */
    private Long userId;
    /**
     * 机动车id
     */
    private Long vehicleId;
    /**
     * 违章时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date violationTime;
    /**
     * 违章地点
     */
    private String violationAddress;
    /**
     * 违章类型id
     */
    private Integer violationTypeId;
    /**
     * 说明
     */
    private String description;
    /**
     * 缴费截止时间（time+15天）
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date violationDeadline;
    /**
     * 处理状态
     */
    private String violationStatus;
    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 用户名
     */
    private String username;
    /**
     * 车牌号
     */
    private String plateNumber;
    /**
     * 违章类型名
     */
    private String violationTypeName;
    /**
     * 违章状态名
     */
    private String violationStatusName;

    /**
     * 被扣分数
     */
    private Integer score;

    /**
     * 罚单信息
     */
    private TicketDto ticket;
}

